reftests: Remove info-bar-message-types test
authorBenjamin Otte <otte@redhat.com>
Thu, 28 Mar 2019 19:44:39 +0000 (20:44 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 29 Mar 2019 08:56:52 +0000 (09:56 +0100)
- The test doesn't properly test infobars. An infobar is not a box.

- Infobar message types aren't styled anymore.

testsuite/reftests/info-bar-message-types.css [deleted file]
testsuite/reftests/info-bar-message-types.ref.ui [deleted file]
testsuite/reftests/info-bar-message-types.ui [deleted file]
testsuite/reftests/meson.build

diff --git a/testsuite/reftests/info-bar-message-types.css b/testsuite/reftests/info-bar-message-types.css
deleted file mode 100644 (file)
index 9a07710..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-@import "reset-to-defaults.css";
-
-.info {
-  background-color: @info_bg_color;
-  color: @info_fg_color;
-}
-
-.warning {
-  background-color: @warning_bg_color;
-  color: @warning_fg_color;
-}
-
-.question {
-  background-color: @question_bg_color;
-  color: @question_fg_color;
-}
-
-.error {
-  background-color: @error_bg_color;
-  color: @error_fg_color;
-}
-
-#reference-info {
-  padding: 8px;
-  color: @info_fg_color;
-  background-color: @info_bg_color;
-  background-image: none;
-}
-
-#reference-warning {
-  padding: 8px;
-  color: @warning_fg_color;
-  background-color: @warning_bg_color;
-  background-image: none;
-}
-
-#reference-question {
-  padding: 8px;
-  color: @question_fg_color;
-  background-color: @question_bg_color;
-  background-image: none;
-}
-
-#reference-error {
-  padding: 8px;
-  color: @error_fg_color;
-  background-color: @error_bg_color;
-  background-image: none;
-}
-
-#reference-other {
-  padding: 8px;
-}
diff --git a/testsuite/reftests/info-bar-message-types.ref.ui b/testsuite/reftests/info-bar-message-types.ref.ui
deleted file mode 100644 (file)
index 21dd796..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
-  <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkWindow" id="window1">
-    <property name="can_focus">False</property>
-    <property name="type">popup</property>
-    <child>
-      <object class="GtkGrid" id="grid1">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
-        <child>
-          <object class="GtkLabel" id="label1">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="label" translatable="yes">Info</property>
-            <property name="name">reference-info</property>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">0</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkLabel" id="label2">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="label" translatable="yes">Warning</property>
-            <property name="name">reference-warning</property>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">1</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkLabel" id="label3">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="label" translatable="yes">Question</property>
-            <property name="name">reference-question</property>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">2</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkLabel" id="label4">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="label" translatable="yes">Error</property>
-            <property name="name">reference-error</property>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">3</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkLabel" id="label5">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="label" translatable="yes">Other</property>
-            <property name="name">reference-other</property>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">4</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-      </object>
-    </child>
-  </object>
-</interface>
diff --git a/testsuite/reftests/info-bar-message-types.ui b/testsuite/reftests/info-bar-message-types.ui
deleted file mode 100644 (file)
index d274ba7..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
-  <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkWindow" id="window1">
-    <property name="can_focus">False</property>
-    <property name="type">popup</property>
-    <child>
-      <object class="GtkGrid" id="grid1">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
-        <child>
-          <object class="GtkInfoBar" id="infobar1">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="orientation">horizontal</property>
-            <property name="message_type">info</property>
-            <child internal-child="content_area">
-              <object class="GtkBox" id="infobar-content_area1">
-                <property name="can_focus">False</property>
-                <property name="spacing">16</property>
-                <child>
-                  <object class="GtkLabel" id="label1">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Info</property>
-                  </object>
-                </child>
-              </object>
-            </child>
-            <child internal-child="action_area">
-              <object class="GtkButtonBox" id="infobar-action_area1">
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <property name="spacing">6</property>
-                <property name="layout_style">end</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">0</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkInfoBar" id="infobar2">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="orientation">horizontal</property>
-            <property name="message_type">warning</property>
-            <child internal-child="content_area">
-              <object class="GtkBox" id="infobar-content_area2">
-                <property name="can_focus">False</property>
-                <property name="spacing">16</property>
-                <child>
-                  <object class="GtkLabel" id="label2">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Warning</property>
-                  </object>
-                </child>
-              </object>
-            </child>
-            <child internal-child="action_area">
-              <object class="GtkButtonBox" id="infobar-action_area2">
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <property name="spacing">6</property>
-                <property name="layout_style">end</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">1</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkInfoBar" id="infobar3">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="orientation">horizontal</property>
-            <property name="message_type">question</property>
-            <child internal-child="content_area">
-              <object class="GtkBox" id="infobar-content_area3">
-                <property name="can_focus">False</property>
-                <property name="spacing">16</property>
-                <child>
-                  <object class="GtkLabel" id="label3">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Question</property>
-                  </object>
-                </child>
-              </object>
-            </child>
-            <child internal-child="action_area">
-              <object class="GtkButtonBox" id="infobar-action_area3">
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <property name="spacing">6</property>
-                <property name="layout_style">end</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">2</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkInfoBar" id="infobar4">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="orientation">horizontal</property>
-            <property name="message_type">error</property>
-            <child internal-child="content_area">
-              <object class="GtkBox" id="infobar-content_area4">
-                <property name="can_focus">False</property>
-                <property name="spacing">16</property>
-                <child>
-                  <object class="GtkLabel" id="label4">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Error</property>
-                  </object>
-                </child>
-              </object>
-            </child>
-            <child internal-child="action_area">
-              <object class="GtkButtonBox" id="infobar-action_area4">
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <property name="spacing">6</property>
-                <property name="layout_style">end</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">3</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-        <child>
-          <object class="GtkInfoBar" id="infobar5">
-            <property name="visible">True</property>
-            <property name="can_focus">False</property>
-            <property name="orientation">horizontal</property>
-            <property name="message_type">other</property>
-            <child internal-child="content_area">
-              <object class="GtkBox" id="infobar-content_area5">
-                <property name="can_focus">False</property>
-                <property name="spacing">16</property>
-                <child>
-                  <object class="GtkLabel" id="label5">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Other</property>
-                  </object>
-                </child>
-              </object>
-            </child>
-            <child internal-child="action_area">
-              <object class="GtkButtonBox" id="infobar-action_area5">
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <property name="spacing">6</property>
-                <property name="layout_style">end</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="left_attach">0</property>
-            <property name="top_attach">4</property>
-            <property name="width">1</property>
-            <property name="height">1</property>
-          </packing>
-        </child>
-      </object>
-    </child>
-  </object>
-</interface>
index f4cc9af3ba3f19bffc4707772330dfc7c721bcae..b254f8d87e94893d8189002efc97bec017c00a71 100644 (file)
@@ -248,9 +248,6 @@ testdata = [
   'image-load-from-file.css',
   'image-load-from-file.ref.ui',
   'image-load-from-file.ui',
-  'info-bar-message-types.css',
-  'info-bar-message-types.ref.ui',
-  'info-bar-message-types.ui',
   'inherit-and-initial.css',
   'inherit-and-initial.ref.ui',
   'inherit-and-initial.ui',